package com.sheep.pattern.proxy;

import java.io.BufferedOutputStream;
import java.io.FilterOutputStream;

/**
 * @author wangze
 * @date 2021-03-03 14:51.
 **/
public class UserProxySendMsg implements ISendMsgService {

	ISendMsgService userSendMsg = new UserSendMsg();

	@Override
	public void sendMsg(String msg) {
		System.out.println("发送消息了");
		userSendMsg.sendMsg(msg);
		System.out.println("发送消息结束了");

	}

	public static void main(String[] args) {
		ISendMsgService sendMsgService=new UserProxySendMsg();
		sendMsgService.sendMsg("hello");

	}
}
